package com.suieqian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description:
 * @author: Lishuai
 */
@TableName(value = "sys_menu")
@Data
@Accessors(chain = true)
@ApiModel(value = "SysMenu对象", description = "菜单")
public class SysMenu implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("菜单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("菜单链接")
    private String path;

    @ApiModelProperty("菜单链接")
    private String icon;

    @ApiModelProperty("菜单权限")
    private String permission;

    @ApiModelProperty("菜单样式")
    private String htmlStyle;

    @ApiModelProperty("父菜单id")
    private Long parentId;

    @ApiModelProperty("菜单类型（M目录 C菜单 F按钮）")
    private Integer menuType;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("菜单状态（0正常 1删除）")
    private Integer delStatus;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    private Long createId;

    @ApiModelProperty("更新人")
    private Long updateId;

    @ApiModelProperty("更新人姓名")
    private String updateName;

}